<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>09事件修饰符</title>
<style>
  div:not(#app){
    padding: 50px;
  }
  #div1{
    background-color: #f3f;
  }
  #div2{
    background-color: #a2c;
  }
  #div3{
    background-color: #ff3;
  }
</style>
</head>
<body>

  <div id='app'>
    <div id="div1" @click="fn1()">
      <div id="div2" @click.capture="fn2()">
        <div id="div3" @click="fn3()"></div>
      </div>
    </div>
  </div>

<script src='https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js'></script>
<script>
  const app = new Vue({
    el: '#app'
    ,data:{
    }
    ,methods:{
      fn1(){
        alert(1)
      },
      fn2(){
        alert(2)
      },
      fn3(){
        alert(3)
      }
    }
  })
</script>
</body>
</html>